<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Inherits="System.Web.Mvc.ViewPage<VMWorkshop.Domain.ProductEditView>" runat="server">

    <h2>Edit</h2>
    
    <% Using (Html.BeginForm("Persist", "Products", FormMethod.Post))%>
    
    <div id="product">
        <%= Html.Hidden("productId", Model.ProductId) %>
        <div class="item">
            <div class="lbl"><label for="title">Title</label></div>
            <div class="ctl"><%= Html.TextBox("title", Model.Title) %></div>
        </div>
        <div class="item">
            <div class="lbl"><label for="description">Description</label></div>
            <div class="ctl"><%= Html.TextBox("description", Model.Description) %></div>
        </div>
        <div class="item">
            <div class="lbl"><label for="qty">Qty on Hand</label></div>
            <div class="ctl"><%= Html.TextBox("quantityOnHand", Model.QuantityOnHand) %></div>
        </div>
        <div class="item">
            <div class="lbl"><label for="releasedate">Release Date</label></div>
            <div class="ctl"><%= Html.TextBox("releasedate", Model.ReleaseDate) %></div>
        </div>
        <div class="item">
            <div class="lbl"><label for="price">Price</label></div>
            <div class="ctl"><%= Html.TextBox("price", Model.Price) %></div>
        </div>
        <div class="item">
            <div class="nolbl">&nbsp;</div>
            <div class="ctl"><input type="submit" value="Save" /></div>
        </div>
    </div>

    <% End Using%>

</asp:Content>
